package com.dz.goods.service;

import com.dz.common.core.exception.NotFoundDataException;
import com.dz.goods.domain.entity.Goods;
import com.dz.goods.domain.entity.Spu;

import java.util.List;


public interface SpuService {
    Spu findById(Long id)throws Exception;
    Spu add(Spu spu)throws Exception;
    void delete(Long id)throws Exception;
    Spu edit(Spu spu)throws Exception;

    void saveGoods(Goods goods)throws Exception;
    Goods findGoodsById(Long spuId);
    void onShelf(Long spuId) throws NotFoundDataException;
    void offShelf(Long spuId) throws NotFoundDataException;
    void batchOnshelf(List<Long> ids) throws NotFoundDataException;
    void batchOffshelf(List<Long> ids) throws NotFoundDataException;
}